<?php
/**
 * 教学反思模型
 * @author LXf
 * @date 2018.8.24
 */

namespace App\Model\Crm;

use App\model\BaseModel;
use DB;

class TeachReflectionModel extends BaseModel{
     /***
     *教学反思列表 
     ***/
    const TEACH_REFLECTION = 'teach_reflection';
    public static function listReflection($orderby="id"){
        
        return DB::table(self::TEACH_REFLECTION)->orderBy($orderby)->get();

    }
    /***
     *添加教学反思 
     ***/
    public static function addReflection($data){
        
        return DB::table(self::TEACH_REFLECTION)->insert($data);

    }
     /***
     *修改教学反思 
     ***/
    public static function updateReflection($where,$data){
        
        return DB::table(self::TEACH_REFLECTION)->where($where)->update($data);

    }
    public static function delReflection($where){
       return DB::table(self::TEACH_REFLECTION)->where($where)->delete();
    }

}